package org.zkdn.modules.wlpt.basicinfo.enums;

import com.google.common.collect.Maps;

import java.util.Arrays;
import java.util.Map;

public enum DictCodeEnums {
    /** 道路标签 */
    ROAD_TAG("road_tag"),

    /** 路口标签 */
//    CROSS_TAG("cross_tag")
    ;

    public String dictCode;

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }


    DictCodeEnums(String dictCode) {
        this.dictCode = dictCode;
    }

    public static DictCodeEnums getByValue(String value){
        return mapValues.get(value);
    }

    private static final Map<String, DictCodeEnums> mapValues =
            Maps.uniqueIndex(Arrays.asList(DictCodeEnums.values()), DictCodeEnums::getDictCode);
}
